<div >
    <form class="form-horizontal" role="form" novalidate name="stForm" ng-switch on="param.timeType">
        <div class="form-ctrl md-whiteframe-z1">
            <div class="form-search" style="height:225px;" ng-class="{true: 'shou'}[shoumun==0]" >

             <div>
               <label style="">统计方式</label>
                <md-select  ng-model="param.systemCode" >
                 <md-option ng-value="system.systemCode"  ng-repeat="system in systems">{{system.systemName}}</md-option>
               </md-select>
             </div>


                <div>
                    <label style="width:70px">域/前置</label>
                    <md-select multiple ng-model="param.regionName" >
                        <md-select-label>
                          {{param.regionName.length ? _getNames(param.regionName,'regionName',regions) :'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(param,'region')">全部</md-option>
                        <md-option ng-value="region" ng-repeat="region in regions">{{region.regionName}}</md-option>
                    </md-select>
                </div>

      <div>
        <label style="">账期</label>
          <md-select   ng-model="param.timeType" >
          <md-option   ng-value="timeType.timeTypeCode"     ng-repeat="timeType in timeTypes">{{timeType.timeTypeName}}</md-option>
        </md-select>
      </div>


      <!--账期为日-->
      <div  ng-switch-when='1'>
         <md-input-container flex>
          <label>开始时间</label>
          <input type="date" ng-model="yearitem.startTime"    time-validate="day"   name='startTime' end-time='yearitem.endTime' required >
          <div ng-messages="myform.startTime.$error">
           <div ng-message="date">请正确输入时间</div>
           <div ng-message="time-error">{{errorInfo.startTime[0]}}</div>
           <div ng-message="too-great">{{errorInfo.startTime[1]}}</div>
          </div>
         </md-input-container>
      </div>


      <div  ng-switch-when='1'>
         <md-input-container flex>
          <label>结束时间</label>
          <input type="date" ng-model="yearitem.endTime"    time-validate="day"    name='startTimes' required  start-time='yearitem.startTime'>
          <div ng-messages="myform.startTimes.$error">
           <div ng-message="date">请正确输入时间</div>
            <div ng-message="time-error">{{errorInfo.endTime[0]}}</div>
            <div ng-message="too-great">{{errorInfo.endTime[1]}}</div>
          </div>
         </md-input-container>
      </div>
      <div  ng-switch-when='0'>
            <md-input-container flex>
          <label>开始时间</label>
          <input type="datetime-local" ng-model="yearitem.startTime"    time-validate="hours"    name='startTime' end-time='yearitem.endTime' required >
          <div ng-messages="myform.startTime.$error">
           <div ng-message="date">请正确输入时间</div>
           <div ng-message="time-error">{{errorInfo.startTime[0]}}</div>
           <div ng-message="too-great">{{errorInfo.startTime[1]}}</div>
          </div>
         </md-input-container>
      </div>

       <div  ng-switch-when='0'>
            <md-input-container flex>
          <label>开始时间</label>
          <input type="datetime-local" ng-model="yearitem.endTime"   time-validate="hours"    name='startTime' end-time='yearitem.endTime' required >
          <div ng-messages="myform.startTime.$error">
           <div ng-message="date">请正确输入时间</div>
           <div ng-message="time-error">{{errorInfo.startTime[0]}}</div>
           <div ng-message="too-great">{{errorInfo.startTime[1]}}</div>
          </div>
         </md-input-container>
      </div>



           </div>
            <i class="glyphicon glyphicon-chevron-up shrinkage"  ng-click="shoumun=0"></i>
            <md-button ng-click="queryAllChannel()" ng-click="shoumun==1?shoumun=0:shoumun=1" class="md-fab md-primary md-hue-1" ng-disabled ='stForm.$invalid' aria-label="Profile">
                <i class="glyphicon glyphicon-arrow-down" style="margin-top:28px;" ng-show="shoumun==0"></i>
                <i class="glyphicon glyphicon-search" ng-show="shoumun==1"></i>
            </md-button>
        </div>
    </form>
       <div  id="insert" class='left' style="height:210px;width:614px"></div>
       <div  id="select" class='right'style="height:210px;width:614px"></div>
       <div  id="update" class='left'style="height:210px;width:614px"></div>
       <div  id="equipmentSpace" class='right' style="height:210px;width:614px"></div>
       <div  id="dataSpace" class='left' style="height:210px;width:614px"></div>
</div>
